
export default class GameTimeObserver  {

    private time:number = 1;

    private callback:Function;

    constructor(time:number,func:Function){
        this.time  = time;
        this.callback = func;
    }


    getTime():number{
        return this.time;
    }

    excute(){
        this.callback();
    }


}
